#include "pac.h"
#define SIZE 102
#include <unistd.h>
#define SHAPE '>'
void pac()
{
char arr[SIZE]={0};
int i=0;
const char* p="|/-\\";
while(i<=100)
{
printf("[\033[42;32;31m%-100s\033[0m]][%d%%][%c]\r",arr,i,p[i%4]);
fflush(stdout);
usleep(100000);
arr[i]='=';
if(i!=99)
arr[i+1]=SHAPE;
i++;
}
printf("\n");
}
